package com.rgs.se.data.stack;

/**
 * @author Ren Gaoshuai
 * @ClassName TestMain
 * @date 2022-04-03 21:38
 **/
public class TestMain {
    public static void main(String[] args) {
        ArrayStack<Integer> stack = new ArrayStack<Integer>();
        for (int i = 0; i < 5; i++) {
            stack.push(i);
            System.out.println(stack);
        }

        stack.pop();
        System.out.println(stack);
        System.out.println(stack.getSize());
    }
}
